package com.anxin.dao;

import java.util.List;
import java.util.Map;

import com.anxin.util.PageListData;

public interface BaseDAO<T,PK> {
	public T save(T entity);
	public void update(T entity);
	public void delete(T entity);
	public void delete(Class<T> entityClass, PK id);
	public T findById(Class<T> entityClass, PK id);
	public List<T> findAll(Class<T> entityClass);
	public PageListData queryPage(Class<T> entityClass,Map params, int currentPage, int pageSize);
}
